﻿<Window x:Class="Coding4Fun.BoxingBots.UserConsole.GameWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:UserConsole="clr-namespace:Coding4Fun.BoxingBots.UserConsole"
		Width="1920" Height="1080"
        Title="BOXERBOTS PLAYER CONSOLE" WindowStartupLocation="CenterScreen" Background="#000000" WindowState="Maximized" WindowStyle="None" KeyDown="Window_KeyDown">
    <Canvas Width="1920" Height="1080">

        <UserConsole:ringVideo x:Name="RingVideo" Canvas.Left="546" Canvas.Top="314"/>
        
        <Canvas x:Name="canvasDamagePaths" Width="496" Height="496" Canvas.Left="254" Canvas.Top="563" ClipToBounds="True">
            <Path Canvas.Left="248" Canvas.Top="248">

                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="-1"/>
                        <RotateTransform Angle="90"/>
                    </TransformGroup>
                </Path.RenderTransform>

                <Path.Data>
                    <PathGeometry>
                        <PathFigure x:Name="figure_damage"/>
                    </PathGeometry>
                </Path.Data>
                <Path.Fill>
                    <SolidColorBrush Color="#06ebc7"/>
                </Path.Fill>
            </Path>
        </Canvas>

        <Canvas x:Name="allPaths" Width="636" Height="636" Canvas.Left="841" Canvas.Top="23"  ClipToBounds="True">
            <Path x:Name="path_PunchRight" Canvas.Left="318" Canvas.Top="318">
                <Path.RenderTransform>
                    <TransformGroup>
                        <RotateTransform Angle="21.5"/>
                    </TransformGroup>
                </Path.RenderTransform>
                <Path.Data>
                    <PathGeometry>
                        <PathFigure x:Name="figure_punchRightOuter"/>
                        <PathFigure x:Name="figure_punchRightMiddle"/>
                        <PathFigure x:Name="figure_punchRightInner"/>
                    </PathGeometry>
                </Path.Data>
                <Path.Fill>
                    <SolidColorBrush Color="#05ebb7"/>
                </Path.Fill>
            </Path>
            <Path x:Name="path_PunchLeft" Canvas.Left="318" Canvas.Top="318">
                <Path.RenderTransform>
                    <TransformGroup>
                        <RotateTransform Angle="21.5"/>
                        <ScaleTransform ScaleX="-1.0"/>
                    </TransformGroup>
                </Path.RenderTransform>
                <Path.Data>
                    <PathGeometry>
                        <PathFigure x:Name="figure_punchLeftOuter"/>
                        <PathFigure x:Name="figure_punchLeftMiddle"/>
                        <PathFigure x:Name="figure_punchLeftInner"/>
                    </PathGeometry>
                </Path.Data>
                <Path.Fill>
                    <SolidColorBrush Color="#05ebb7"/>
                </Path.Fill>
            </Path>
        </Canvas>

        <Image x:Name="imgMasterBKG" Source="Images/bkgRed.png" />
        
        <Canvas x:Name="canvasTankPaths" Width="496" Height="496" Canvas.Left="254" Canvas.Top="563" ClipToBounds="True">
            <Path Canvas.Left="248" Canvas.Top="248">

                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="-1"/>
                        <RotateTransform Angle="265"/>
                    </TransformGroup>
                </Path.RenderTransform>

                <Path.Data>
                    <PathGeometry>
                        <PathFigure x:Name="figure_tank1"/>
                    </PathGeometry>
                </Path.Data>
                <Path.Fill>
                    <SolidColorBrush Color="#05ebb7"/>
                </Path.Fill>
            </Path>

            <Path Canvas.Left="248" Canvas.Top="248">
                <Path.RenderTransform>
                    <TransformGroup>
                        <RotateTransform Angle="95"/>
                    </TransformGroup>
                </Path.RenderTransform>
                <Path.Data>
                    <PathGeometry>
                        <PathFigure x:Name="figure_tank2"/>
                    </PathGeometry>
                </Path.Data>
                <Path.Fill>
                    <SolidColorBrush Color="#05ebb7"/>
                </Path.Fill>
            </Path>
        </Canvas>
        
        <UserConsole:ringTimer x:Name="RingTimer" Canvas.Left="1576" Canvas.Top="93" />
        <Ellipse x:Name="btnStart" Visibility="Visible" Width="30" Height="30" Fill="White" Opacity="1.0" Canvas.Left="10" Canvas.Top="10" MouseDown="btnStartMouseDown"/>
        <Canvas Height="297" Canvas.Left="355" Canvas.Top="663" Width="297">
            <Image x:Name="damageBase" Height="297" Source="Images/damageBase.png" Stretch="Fill" Width="297"/>
                <Image x:Name="imgD0" Height="149" Source="Images/damage0.png" Stretch="Fill" Width="149" Opacity="0.0"/>
                <Image x:Name="imgD1" Height="149" Source="Images/damage1.png" Stretch="Fill" Width="149" Canvas.Left="148.333" Opacity="0.0"/>
                <Image x:Name="imgD2" Height="149" Source="Images/damage2.png" Stretch="Fill" Width="149" Canvas.Left="147.666" Canvas.Top="148.333" Opacity="0.0"/>
                <Image x:Name="imgD3" Height="149" Source="Images/damage3.png" Stretch="Fill" Width="149" Canvas.Top="148.333" Canvas.Left="0.667" Opacity="0.0"/>
            </Canvas>

        <StackPanel Margin="200,200,0,0" x:Name="AdminPanel" Visibility="Collapsed" Background="Yellow" Width="405" Height="286" Canvas.Left="-188" Canvas.Top="-28">
			<!--<TextBlock FontSize="24"><Run Text="punch: "/><Run x:Name="leftPunch" Text="Unknown"/></TextBlock>
			<TextBlock FontSize="24"><Run Text="wing: "/><Run x:Name="leftWing" Text="Unknown"/></TextBlock>
			<TextBlock FontSize="24"><Run Text="Vel: "/><Run x:Name="leftVel" Text="Unknown"/></TextBlock>
			<TextBlock FontSize="24"><Run Text="wing: "/><Run x:Name="SkeltDeleta" Text="Unknown"/></TextBlock>-->
			<TextBlock FontSize="24"><Run Text="GameState: "/><Run x:Name="GameStateDisplay" Text="Unknown"/></TextBlock>
            <TextBlock FontSize="24"><Run Text="Connected to opponent: "/><Run x:Name="ConnectedToOpponent" Text="False"/></TextBlock>
            <TextBlock FontSize="24"><Run Text="Connected to robot's Kinect: "/><Run x:Name="ConnectedToRobot" Text="False"/></TextBlock>
            <TextBlock FontSize="24"><Run Text="My Health: "/><Run x:Name="MyHealthDisplay" Text="0"/></TextBlock>
            <TextBlock FontSize="24"><Run Text="Opponent Health: "/><Run x:Name="OpponentHealthDisplay" Text="0"/></TextBlock>
            <CheckBox x:Name="MuteKinectAudio" Content="Mute Kinect Audio"/>
            <Button x:Name="ConnectOpponent" Click="ConnectOpponent_Click" Content="Connect to Opponent"/>
            <Button x:Name="ConnectRobot" Click="ConnectRobot_Click" Content="Connect to Robot's Kinect"/>
        </StackPanel>
        
        <UserConsole:ringAvatar x:Name="RingAvatar" Canvas.Left="850" Canvas.Top="28" />
    </Canvas>
</Window>
